package work;

import java.io.BufferedWriter;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;

//高级缓冲字符流--转换字符流--低级字节流
public class BufferWriterDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("fos.txt");
        OutputStreamWriter osw=new OutputStreamWriter(fos);
        BufferedWriter bw=new BufferedWriter(osw);
        bw.write("高级缓冲字符流,接上转换字符流,在接上低级字节流");
        bw.write("sfsf");
        bw.close();
    }
}
